home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / vms4.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.1 KB  |  51 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=vms4.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: vms4.SH,v 3.0 86/09/26 10:14:12 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for VMS 4 output
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19.  
  20. directory $datadir
  21.  
  22. # enable tracing
  23. verbose 1
  24.  
  25. # output format
  26. output vms4
  27.  
  28. comment    vms4hdr.file
  29.  
  30. #    context        subnet
  31. #    name
  32. context    Mail        JANET
  33. context    FTP        JANET
  34. context    X29        JANET
  35. context    TS29        JANET
  36. context    JTMP        JANET
  37. !GROK!THIS!
  38. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  39.     then
  40.         rm -f $outputfile.$$
  41.         echo "    " $outputfile not affected
  42.     elif mv $outputfile.$$ $outputfile
  43.     then
  44.         echo "    " $outputfile updated
  45.     else
  46.         echo "+++    " $outputfile left in $outputfile.$$
  47.     fi
  48. else
  49.     echo "    " Failed to create $outputfile.$$
  50. fi
  51.